//
//  ALAssetsLibrary+hsyLibrary.m
//  HSY
//
//  Created by 陈浩 on 2017/4/20.
//  Copyright © 2017年 金开门. All rights reserved.
//

#import "ALAssetsLibrary+hsyLibrary.h"

@implementation ALAssetsLibrary (hsyLibrary)

+ (instancetype)defaultAssetsLibrary{
    static ALAssetsLibrary * assetsLibrary = nil;
    
    static dispatch_once_t onceToken;
    dispatch_once(&onceToken, ^{
        assetsLibrary = [[ALAssetsLibrary alloc]init];
        
    });
    if ([ALAssetsLibrary authorizationStatus]==ALAuthorizationStatusDenied) {
        alert_alam(@"无法保存到本地相册", @"您需要去设置-隐私-照片中进行设置");
    }
    
    return assetsLibrary;

}

@end
